package com.intelligent.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.intelligent.pojo.QuotationDetail;
import com.intelligent.vo.QuotationDetailPageReq;

import java.util.List;

/**
 * 报价明细Service接口
 */
public interface QuotationDetailService extends IService<QuotationDetail> {


    Page<QuotationDetail> pageWithRelations(QuotationDetailPageReq quotationDetailPageReq);


    QuotationDetail createQuotationDetail(QuotationDetail quotationDetail);


    QuotationDetail getQuotationDetailInfo(Long id);


    List<QuotationDetail> getDetailsByQuotationId(Long quotationId);


    boolean batchCreateQuotationDetails(List<QuotationDetail> quotationDetails);


    boolean generateDefaultDetailForQuotation(Long quotationId);
}
